Skip to content

Add loading component#1541

Merged
robertbrignull merged 3 commits intomainfrom
robertbrignull/loading-component
Sep 26, 2022
Merged

Add loading component#1541
robertbrignull merged 3 commits intomainfrom
robertbrignull/loading-component

Conversation

@robertbrignull
Copy link
Copy Markdown
Contributor

Implements a component to show when the variant analysis submission is being processed. This component doesn't have any props as there's only state it needs to show. The decision on whether to show it or not based on the variant analysis status will be decided by the parent component.

Storybook screenshot:
Screenshot 2022-09-23 at 17 21 48

See the internal issue for how it's meant to look. I've tried to copy the style as closely as possible but please do tell me if this could fit in better.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@robertbrignull
Copy link
Copy Markdown
Contributor Author

Ok, just spotted that I should hook this to the main view as well. I'll look at doing that next week.

@robertbrignull
Copy link
Copy Markdown
Contributor Author

@koesie10, I've pushed a couple more commits, if you could re-review.

I've adjusted the styling to fit better with how we do it in other components, and also to add some padding because it looked bad without it.

I've also hooked it into the main variant analysis component, and it would be shown if you don't set the action workflow ID. I haven't made it so you can view both states in the story book because currently the variant analysis component doesn't take any props, but that could be something to do in the future.

@robertbrignull robertbrignull merged commit ac3b94d into main Sep 26, 2022
@robertbrignull robertbrignull deleted the robertbrignull/loading-component branch September 26, 2022 13:55
@robertbrignull robertbrignull mentioned this pull request Sep 27, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants